package org.example.mine.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.model.domain.express.ExpressDetial;

@Mapper
public interface BankCardMapper {

    @Select("select bank,bank_card_num,account_status from express_detial where register_ip=#{registerIp}")
    ExpressDetial getBankCard(String registerIp);


    @Update("update express_detial set bank=#{bank},bank_card_num=#{bankCardNum},country=#{country},account_status=#{accountStatus},account_people=#{accountPeople} where register_ip=#{registerIp}")
    void addbaxnkcard(ExpressDetial expressDetial);
}
